import {defineConfig} from 'vite'
import dts from 'vite-plugin-dts'
export default defineConfig({
  plugins: [
    dts({
      entryRoot: 'src',
      outputDir: 'types',
    })
  ],
  build: {
    lib: {
      entry: 'src/index.ts',
      name: 'echo',
      fileName: (format) => `index.${format}.js`
    }
  }
})
